import request from '@/utils/request'

// 查询财务记账科目列表
export function listClassification(query) {
  return request({
    url: '/fms/classification/list',
    method: 'get',
    params: query
  })
}

// 查询财务记账科目详细
export function getClassification(id) {
  return request({
    url: '/fms/classification/' + id,
    method: 'get'
  })
}

// 新增财务记账科目
export function addClassification(data) {
  return request({
    url: '/fms/classification',
    method: 'post',
    data: data
  })
}

// 修改财务记账科目
export function updateClassification(data) {
  return request({
    url: '/fms/classification',
    method: 'put',
    data: data
  })
}


// 修改财务记账科目
export function auditClassification(data) {
  return request({
    url: '/fms/classification/audit',
    method: 'put',
    data: data
  })
}

// 删除财务记账科目
export function delClassification(id) {
  return request({
    url: '/fms/classification/' + id,
    method: 'delete'
  })
}




